package com.buercorp.wangyu.oop.Demo02;
// 父类 人
public class Person {
    private int monye;

    protected String name = "yidad";

    public void print(){
        System.out.println("Person");
    }
    public Person() {
        System.out.println("Person被调用了");
    }

    public Person(int monye) {
        this.monye = monye;
    }

    public void say() {
        System.out.println("父类说话");
    }

    /**
     * 获取
     * @return monye
     */
    public int getMonye() {
        return monye;
    }

    /**
     * 设置
     * @param monye
     */
    public void setMonye(int monye) {
        this.monye = monye;
    }

}
